# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=dbus-test-runner
pkgver=19.04.0
pkgrel=4
pkgdesc="Run executabls under a new DBus session for testing"
options="!check" # Tests that uses py3-dbusmock fails
url="https://launchpad.net/dbus-test-runner"
arch="all"
license="GPL-3.0-or-later"
depends="dbus python3 py3-dbusmock"
makedepends="intltool glib-dev dbus-glib-dev"
checkdepends="bash"
subpackages="$pkgname-dev $pkgname-libs"
source="https://launchpad.net/dbus-test-runner/${pkgver%.*}/$pkgver/+download/dbus-test-runner-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_guess
}

build() {
	./configure --prefix=/usr --disable-static
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="5906225f0ce429ea218d7eb4c67281b7ef368d6a173965b214f4f4501e729002ca3293a94fd8afd3002f301cd1f2208cba01c733f678c2d51661220e8a7ce971  dbus-test-runner-19.04.0.tar.gz"
